package Cafezam;


import java.util.Scanner;

public class J03Sungjuk {
	public static void main(String[] args)
	{
		
		//성적처리 프로그램 v2.5
		//학점 계산,비교연산자 논리연산자,if문
		Scanner sc = new Scanner(System.in);
		
		String name;
		int kor=0;
		int eng=0;
		int mat=0;
		int tot=0;
		double avg;
		char grade=' ';
		
		
		System.out.println("국어점수 입력");
		kor=sc.nextInt();
		System.out.println("영어점수 입력");
		eng=sc.nextInt();
		System.out.println("수학점수 입력");
		mat=sc.nextInt();
		
		tot=kor+eng+mat;
		avg=(double)tot/3;
		switch((int)avg/10)
		{
		case 10: 
		case 9: grade='수';break;
		case 8: grade='우';break;
		case 7: grade='미';break;
		case 6: grade='양';break;
		default:grade='가';
		}
		System.out.println(grade);
		
		
		sc.close();
//		tot=kor+eng+mat;
//		avg=(double)tot/3;
//		if(avg>=90){grade='수';}
//		else if(avg>=80){grade='우';}
//		else if(avg>=70){grade='미';}
//		else if(avg>=60){grade='양';}
//		//else if(avg>=0 && avg <=59){grade='가';}
//		else grade='가';
//		
		
       
		sc.close();
		
		}
				
	}
